﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Eurodancelux.Products.Repositories;

namespace Eurodancelux.Website.MasterPages
{
    public partial class SiteTemplate : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                form1.Action = Request.RawUrl;
            }

            ProductRepository prodRepo = new ProductRepository();

            foreach (var p in prodRepo.GetAll())
            {
                testLinq.InnerHtml += "ID: " + p.ID + ", " + "ManufacturerID: " + p.ManufacturerID + ", " + "CategoryID: " + p.CategoryID + "<br />";
            }
        }
    }
}